﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Xml;
using DAL;


namespace BLL
{
    public class NonTermCurrentHandler
    {    
        // Handle to the Non Term Current DBAccess class
        NonTermCurrentDBAccess objNonTerm = null;

        public NonTermCurrentHandler()
        {
            objNonTerm = new NonTermCurrentDBAccess();
           
        }

        public bool UpdateNonTermBalanceReceived(String AccountNumber, Double Balance, String CONNECTION_STRING)
        {
            return objNonTerm.UpdateNonTermBalanceReceived(AccountNumber, Balance, CONNECTION_STRING);
        }

        public DataTable GetNonTermCurrentTable(int UserID, String CONNECTION_STRING)
        {
            return objNonTerm.GetNonTermCurrentTable(UserID, CONNECTION_STRING);
        }
        public List<NonTermCurrent> GetNonTermCurrentList(String CONNECTION_STRING)
        {
            return objNonTerm.GetNonTermCurrentList(CONNECTION_STRING);
        }

        public bool UpdateNonTermCurrent(NonTermCurrent obj, String CONNECTION_STRING)
        {
            return objNonTerm.UpdateNonTermCurrent(obj, CONNECTION_STRING);
        }

        public NonTermCurrent GetNonTermCurrentDetails(int UserID, String CONNECTION_STRING)
        {
            return objNonTerm.GetNonTermCurrentDetails(UserID, CONNECTION_STRING);
        }

        public bool DeleteNonTermCurrent(int NonTermCurrentID, String CONNECTION_STRING)
        {
            return objNonTerm.DeleteNonTermCurrent(NonTermCurrentID, CONNECTION_STRING);
        }

        public bool AddNewNonTermCurrent(NonTermCurrent obj,String CONNECTION_STRING)
        {
            return objNonTerm.AddNewNonTermCurrent(obj,CONNECTION_STRING);
        }
    }
}
